# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-masky
_pkgname=${pkgname#python-}
pkgver=0.2.0
pkgrel=5
pkgdesc='Remotely dump domain user credentials via an ADCS.'
arch=('any')
url='https://github.com/Z4kSec/Masky'
license=('MIT')
depends=('python' 'python-colorama' 'impacket' 'python-cryptography'
         'python-pyasn1' 'python-asn1crypto')
makedepends=('python-setuptools')
options=(!emptydirs)
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha256sums=('fc0a99086da54e1cf91bb5e9c809aa311ea1519f10a3b6faf6d8e0a47c471ec9')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

